package com.ruoyi.iot.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 监控对象 iot_monitor
 *
 * @author 陈江灿
 * @date 2025-02-14
 */
public class IotMonitor extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 摄像头id
     */
    private Long monitorId;

    /**
     * 摄像头名称
     */
    @Excel(name = "摄像头名称")
    private String name;

    /**
     * ip
     */
    @Excel(name = "ip")
    private String ip;

    /**
     * 后台登录用户名
     */
    @Excel(name = "后台登录用户名")
    private String userName;

    /**
     * 后台登录密码
     */
    @Excel(name = "后台登录密码")
    private String password;

    /**
     * rtsp地址
     */
    @Excel(name = "rtsp地址")
    private String rtsp;

    public void setMonitorId(Long monitorId) {
        this.monitorId = monitorId;
    }

    public Long getMonitorId() {
        return monitorId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getIp() {
        return ip;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setRtsp(String rtsp) {
        this.rtsp = rtsp;
    }

    public String getRtsp() {
        return rtsp;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("monitorId", getMonitorId())
                .append("name", getName())
                .append("ip", getIp())
                .append("userName", getUserName())
                .append("password", getPassword())
                .append("rtsp", getRtsp())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
